<!DOCTYPE html>
<!--[if IE 8]>
<html class="ie ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
        <meta charset="<?php bloginfo('charset'); ?>">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title><?php wp_title('|', true, 'right'); ?></title>
        <link rel="shortcut icon" href="/favicon.ico">
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
        <link rel="stylesheet" href="<?php echo THEME_URI; ?>/style.css">
        <link rel="stylesheet" href="<?php echo THEME_CSS; ?>/tien.css">
        <!--[if lt IE 9]>
          <script src="//oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
          <script src="//oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->
        <link rel="profile" href="http://gmpg.org/xfn/11">
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
        <?php wp_head(); ?>
        <script>
            var language = '<?php echo qtrans_getLanguage() ?>';
        </script>
    </head>
    <body <?php body_class(); ?>>
        <div class="container">
		
            <header id="main-header" class="row">
				<div id="logo" class="col-sm-6">
					<a href="<?php echo HOME_URI; ?>"><img id="main-logo" src="<?php echo THEME_IMAGES; ?>/logo.jpg" alt="<?php echo get_bloginfo( 'name' ); ?>" width="179" height="49"></a>
				</div>
				<div id="right-header" class="col-sm-6">
					<div class="language"><a href="<?php echo qtrans_convertURL(get_permalink(), null, true); ?>">FR</a></div>
                                        <?php if ( is_user_logged_in() ): ?>
                                            <?php
                                                global $current_user;
                                                get_currentuserinfo();
                                            ?>
                                            <div class="welcome"><?php _e("Welcome,"); ?> <em><?php echo $current_user->user_firstname ?></em></div>
                                            <div class="welcome"><a href="#"><?php _e("Edit my profile")?></a> | <a href="<?php echo wp_logout_url( home_url() ); ?>"><?php _e("Sign out")?></a></div>
                                        <?php else: ?>
                                        <div class="welcome"> <a href="<?php echo get_permalink(4)?>">Sign in</a> | <a href="<?php echo get_permalink(24)?>"><?php _e("Create account") ?></a>  </div>
                                        <?php endif; ?>
				</div>
            </header>
			
			<nav id="main-nav" class="row">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                </div>
                <div class="collapse navbar-collapse" id="navbar-collapse">
                    <ul>
                        <li class="first active"><a href="/">Home</a></li>
                        <li><a href="/prizes/">Prizes</a></li>
                        <li><a href="/winners/">Winners</a></li>
                        <li><a href="/rules/">Rules</a></li>
                        <li class="last"><a href="/contact-us/">Contact Us</a></li>
                    </ul>
                </div>
            </nav>